/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警
 * @Date：Create by 2023-12-04 14:51:04
 */
import request from '@/utils/request'

const earlyWarning = {
  // 分页查询预警
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/queryPage',
      method: 'post',
      data
    })
  },
  // 详情
  detail(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/detail',
      method: 'post',
      data
    })
  },
  // 新增预警
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/add',
      method: 'post',
      data
    })
  },
  // 编辑预警
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/update',
      method: 'post',
      data
    })
  },
  // 删除预警
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除预警
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarning/batchDelete',
      method: 'post',
      data
    })
  }
}

export default earlyWarning
